rb-widgets.js ➔ ... ➔ rb_data.forEach   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 10
rs 9.4285
c 2
b 1
f 0
1
function makeRbFrame() {
2
	rb_data.forEach(function(rb_widget, index) {
0 ignored issues
show
Bug introduced by
The variable rb_data seems to be never declared. If this is a global, consider adding a /** global: rb_data */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
3
		var rb_ifrm = document.createElement( "IFRAME" );
4
		var rb_src_domain = "&srcd=" + document.location.href.replace( /^[a-z:]+\/\//,"" ).replace( /\/.*/,"" );
5
		rb_ifrm.setAttribute( "src", rb_widget.url + rb_src_domain );
6
		rb_ifrm.style.width = rb_widget.width;
7
		rb_ifrm.style.height = rb_widget.height;
8
		rb_ifrm.style.border = "none";
9
		rb_ifrm.frameBorder = "0px";
10
		document.getElementById( 'rb-widget-' + index ).appendChild( rb_ifrm );
11
	});
12
}
13
makeRbFrame();
14